void main()
{
	int target, response, guess, num1, num2, time;
	printf("This is a guess game.");
	printf("Each round the computer will get a number randomly.");
	printf("The player may guess the number and the computer will tell whether the number is bigger, smaller or equal.");

	printf("Game Designed for test.");
	printf("Do you want to play? (Input 1 to play, others to stop)");
	scanf(response);
	num1 = 1;
	num2 = 1;
	time = 0;
	guess = 0;
	while (response == 1)
	{
		target = num1 + num2;
		num1 = num2;
		num2 = target;
		time = 0;
		guess = 0;	
		while (guess != target)
		{
			printf("Please guess a number: ");
			scanf(guess);
			time = time + 1;
			if (guess < target)
				printf("Your guess is smaller than the target.");
			if (guess > target)
				printf("Your guess is bigger than the target.");
			if (guess == target)
			{
				printf("You hit it! Congratulations!");
				printf("This round you spend ", time);
				printf("times to get the correct target.");
			}
		}

		
		printf("Do you want to play? (Input 1 to play, others to stop)");
		scanf(response);
	}
}